Computer Science
azw3 | eng | 2017-04-24 | Author: Giancarlo Zaccone & Md. Rezaul Karim & Ahmed Menshawy [Zaccone, Giancarlo] def loss(pred, label): cross_entropy_loss = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(logits=pred, labels=label)) tf.summary.scalar('Entropy', cross_entropy_loss) reg_losses = tf.add_n(tf.get_collection("losses")) tf.scalar_summary('Reg_loss', reg_losses) return cross_entropy_loss + REGULARIZATION * reg_losses def train(loss, step): return tf.train.AdamOptimizer(LEARNING_RATE). minimize(loss, global_step=step) def get_next_batch(images, labels, ...
( Category: January 15,2018 )
azw3 | eng | 2017-08-28 | Author: Ciaburro, Giuseppe [Ciaburro, Giuseppe] Figure 5.5: Graphic description of the tree Figure 5.5 gives us useful information on the classification of the three floral species immediately. In most cases, the building of the decision ...
( Category: January 15,2018 )
azw3 | eng | 2016-07-29 | Author: Zaccone, Giancarlo [Zaccone, Giancarlo] Building the training set Import all the necessary libraries to our simulation: import matplotlib.pyplot as plt import numpy as np import tensorflow as tf import pandas as pd Note Pandas ...
( Category: January 15,2018 )
azw3 | eng | 2017-10-05 | Author: Balaji Venkateswaran [Venkateswaran, Balaji] In this case also, all the points above the hyperplane are assumed to be 1/TRUE, while the ones below are assumed to be 0/FALSE. However, some Boolean functions cannot be ...
( Category: January 15,2018 )
epub, azw3 | eng | 2016-03-29 | Author: Rashid, Tariq In the next cell, the following code. a = numpy.zeros( [3,2] ) print(a) This uses the imported numpy module to create an array of shape 3 by 2, with all ...
( Category: January 15,2018 )
azw3 | eng | 2017-07-31 | Author: Dan Van Boxel [Boxel, Dan Van] So we know where to start let's look at the example image using the following code: # Let's take a look import matplotlib.pyplot as plt plt.ion() # Original plt.matshow(image[0]) plt.colorbar() ...
( Category: January 15,2018 )
epub | eng | | Author: David Pogue Type by talking to your PC As you now know, you can command your PC by voice—but you can also speak freely, dictating text instead of typing it. You know: ...
( Category: January 10,2018 )
azw3, mobi, epub | eng | 2016-04-12 | Author: Pierfederici, Francesco [Pierfederici, Francesco] The pip command will install Pyro version 4.x as well as Serpent, the serializer that Pyro uses behind the scenes to encode and decode Python objects. Rewriting the previous currency ...
( Category: January 8,2018 )